package com.h3c.nem.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.h3c.nem.dto.OfferAdjustDTO;
import com.h3c.nem.dto.form.ConfigTheFormSubmit;
import com.h3c.nem.dto.form.GetFormBusinessData;
import com.h3c.nem.entity.TbOfferModify;
import com.h3c.nem.entity.TbOfferWorker;

import java.util.Map;

/**
 * (TbOfferModify)表服务接口
 *
 * @author makejava
 * @since 2022-06-09 09:36:33
 */
public interface ITbOfferModifyService extends IService<TbOfferModify> {

    String saveOfferModify(OfferAdjustDTO dto, TbOfferWorker worker);

    /**
     * 页面获取修改offer信息
     * @param workerId
     * @return
     */
    public JSONObject getOfferModifyInfo(String workerId, String recordId);

    /**
     * 移动中台获取offer信息
     * @param formBusinessData
     * @return
     */
    Map<String, Object> getOfferModify(GetFormBusinessData formBusinessData);

    /**
     * 移动中台提交审核
     * @param configTheFormSubmit
     */
    void submitApproval(ConfigTheFormSubmit configTheFormSubmit);

    /**
     * 校验offer是否存在修改的todoTask
     * @param workerId
     * @return
     */
    boolean checkOfferModifyHavingApproving(String workerId);
}

